package org.gr.ias.common.entity;

import java.io.Serializable;
import java.util.Date;

public class InvestmentFinancingLog implements Serializable {
    /** */
    private String id;

    /** 操作人ID*/
    private String operatorId;

    /** 操作人名称*/
    private String operatorName;

    /** 操作模块代码(如表名)*/
    private String operatorModuleCode;

    /** 操作代码：
            01-新增
            02-修改
            03-删除
            04-查询
            05-审核拒绝
            06-审核通过
            07-锁定
            08-解锁
            09-加入黑名单
            10-等等*/
    private String operatorTypeCode;

    /** 操作时间*/
    private Date operatorTime;

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId == null ? null : operatorId.trim();
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName == null ? null : operatorName.trim();
    }

    public String getOperatorModuleCode() {
        return operatorModuleCode;
    }

    public void setOperatorModuleCode(String operatorModuleCode) {
        this.operatorModuleCode = operatorModuleCode == null ? null : operatorModuleCode.trim();
    }

    public String getOperatorTypeCode() {
        return operatorTypeCode;
    }

    public void setOperatorTypeCode(String operatorTypeCode) {
        this.operatorTypeCode = operatorTypeCode == null ? null : operatorTypeCode.trim();
    }

    public Date getOperatorTime() {
        return operatorTime;
    }

    public void setOperatorTime(Date operatorTime) {
        this.operatorTime = operatorTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InvestmentFinancingLog other = (InvestmentFinancingLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getOperatorName() == null ? other.getOperatorName() == null : this.getOperatorName().equals(other.getOperatorName()))
            && (this.getOperatorModuleCode() == null ? other.getOperatorModuleCode() == null : this.getOperatorModuleCode().equals(other.getOperatorModuleCode()))
            && (this.getOperatorTypeCode() == null ? other.getOperatorTypeCode() == null : this.getOperatorTypeCode().equals(other.getOperatorTypeCode()))
            && (this.getOperatorTime() == null ? other.getOperatorTime() == null : this.getOperatorTime().equals(other.getOperatorTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getOperatorName() == null) ? 0 : getOperatorName().hashCode());
        result = prime * result + ((getOperatorModuleCode() == null) ? 0 : getOperatorModuleCode().hashCode());
        result = prime * result + ((getOperatorTypeCode() == null) ? 0 : getOperatorTypeCode().hashCode());
        result = prime * result + ((getOperatorTime() == null) ? 0 : getOperatorTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", operatorName=").append(operatorName);
        sb.append(", operatorModuleCode=").append(operatorModuleCode);
        sb.append(", operatorTypeCode=").append(operatorTypeCode);
        sb.append(", operatorTime=").append(operatorTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}